package com.monlyu.action.log;

import java.io.FileInputStream;

import com.monlyu.action.system.DownloadAction;

/**
 * @since Fan Houjun 2009-3-30
 */
public class DownLoadLogAction extends DownloadAction {

	public String execute() throws Exception {
		try{
			inputStream = new FileInputStream(System.getProperty("user.dir") + "/WebRoot/logs/" + filename);
		} catch (Exception e) {
			inputStream = new FileInputStream(System.getProperty("user.dir") + "/logs/" + filename);
		}
		return download("txt");
	}
}
